package com.ls.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("teacher")
public class Teacher {
    private Integer id;
    private String tno;
    private String teacherName;
    private String teacherPassword;
    private String teacherDepartment;
    private String teacherClass;
}

/*
  		-- id 主键
        id           int(5) COLLATE utf8_bin NOT NULL auto_increment COMMENT '主键',
        -- 教师编号 主键
        tno        varchar(6) COLLATE utf8_bin NOT NULL UNIQUE COMMENT '教师编号',
        -- 教师名称
        teacher_name   varchar(10) COLLATE utf8_bin NOT NULL COMMENT '姓名',
  		-- 教师密码
        teacher_password  varchar(12) DEFAULT '123456' COLLATE utf8_bin NOT NULL COMMENT '密码',
  	    -- 所属院系
  		teacher_department  varchar(10) COLLATE utf8_bin NOT NULL COMMENT '所属院系',
  		-- 班级
  		teacher_class varchar(10) COLLATE utf8_bin NOT NULL COMMENT '所教班级',
 */
